<template>
  <div class="dashboard-container" style="margin: 0 0">
    <div class="block">
      <el-image :src="src" style=""></el-image>
    </div>
    <!-- <div class="block">
    <el-carousel height="450px">
      <el-carousel-item v-for="item in pics" :key="item" autoplay="true">
        <el-image :src="item"></el-image>
      </el-carousel-item>
    </el-carousel>
    </div> -->
    <div class="dashboard-text">
      <ul style="font-size: 16px; color: #4a4a4a">
        <li>第 9 组</li>
        <li>组长: 张健, 组员: 白坤鹏, 王振兴, 姚佳林</li>
        <li>项目后端仓库：<a href="https://gitee.com/kainzhang/kz-ssm-crud">https://gitee.com/kainzhang/kz-ssm-crud</a></li>
        <li>项目前端仓库：<a href="https://gitee.com/kainzhang/kz-ssm-ui">https://gitee.com/kainzhang/kz-ssm-ui</a></li>
        <li>项目演示地址：<a href="http://jz.lokka.me">http://jz.lokka.me</a></li>
        <li>项目接口地址：<a href="http://localhost:8888/swagger-ui.html#/">http://localhost:8888/swagger-ui.html#/</a></li>
      </ul>
    </div>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'

export default {
  data() {
    return {
      src: 'https://cdn.jsdelivr.net/gh/kainzhang/kz-img/blog/common/breno-assis-r3WAWU5Fi5Q-unsplash.jpg',
      pics: [
        'https://cdn.jsdelivr.net/gh/kainzhang/kz-img/blog/20/05/02/michael-liao-GQe23-3-Lf8-unsplash.jpg',
        'https://cdn.jsdelivr.net/gh/kainzhang/kz-img/blog/20/05/01/anton-darius-JNzjM2hhIiQ-unsplash.jpg',
        'https://cdn.jsdelivr.net/gh/kainzhang/kz-img/blog/20/04/27/polina-rytova-1AUe0hwdC3o-unsplash.jpg',
        'https://cdn.jsdelivr.net/gh/kainzhang/kz-img/blog/common/breno-assis-r3WAWU5Fi5Q-unsplash.jpg'
      ]
    }
  },
  name: 'Dashboard',
  computed: {
    ...mapGetters([
      'name'
    ])
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}

el-carousel__item h3 {
    color: #475669;
    font-size: 14px;
    opacity: 0.75;
    line-height: 450px;
    margin: 0;
  }

  .el-carousel__item:nth-child(2n) {
     background-color: #99a9bf;
  }
  
  .el-carousel__item:nth-child(2n+1) {
     background-color: #d3dce6;
  }
</style>
